<?php
$docRoot = $_SERVER ['DOCUMENT_ROOT'] . '/' . strtok ( $_SERVER ['PHP_SELF'], '/' );
include_once ($docRoot . "/application/service/db/DBConnectionManager.php");
?>


<?php

class TournamentDAO {

public function addTournament($tourId, $tourName, $tourUrl) {
		$connection = DBConnectionManager::getDBConnecion ();
		$sql = "insert into `tournament` set `tour_id`='$tourId',`tour_name`='$tourName',`tour_feed`='$tourUrl'";
		mysql_query ( $sql ) or die ( "Unable to add team details " . mysql_error () );
		mysql_close ( $connection );
	}
}

?>